﻿enum Authority : byte
{
    Normal = 0,
            Dev,
            GSM ,
            ChiefGSM,
            GM,
            ChiefGM,
            NPC,
            DevCAT,
            CheifDevCAT,
            Boss
}

public enum BankRace : byte
{
    Human = 0,
    Elf = 1,
    Giant = 2,
    None = byte.MaxValue
}

internal enum BidState
{
    Biddable = -1,
    NotEnoughMoney,
    HouseBidderExist,
    HouseItemExist,
    Unknown
}

public enum BUILD_RESULT
{
    RESULT_NONE,
    OVERFLOW_CONDITION,
    OVERFLOW_HISTORY,
    OVERFLOW_MEMORY
}

public enum BUILD_MAX_LENGTH
{
    MAX_LENGTH_CONDITION = 1000,
    MAX_LENGTH_HISTORY = 500,
    MAX_LENGTH_MEMORY = 2000
}

public enum ChronicleType : byte
{
    CLTMulti,
    CLTConstSingle,
    CLTSingle
}

public enum EBOARD_OPTION
{
    BO_DEFAULT = 0,
    BO_ROYALTIES = 1,
    BO_DELETE = 2,
    BO_AUTO_BLOCK = 4,
    BO_GM_BLOCK = 8
}

public enum NETWORKMSG
{
    MC_DB_ACCOUNT_CREATE = 11,
    MC_DB_ACCOUNT_UPDATE = 12,
    MC_DB_ACCOUNT_READ = 13,
    MC_DB_ACCOUNT_DELETE = 14,
    MC_DB_CHARACTER_CREATE = 0xF,
    MC_DB_CHARACTER_UPDATE = 0x10,
    MC_DB_CHARACTER_READ = 17,
    MC_DB_CHARACTER_DELETE = 18,
    MC_DB_CHARACTER_DELETE_RESERVE = 19,
    MC_DB_CHARACTER_REVIVE = 20,
    MC_DB_ACCOUNT_REF_DELETE = 21,
    MC_DB_ACCOUNT_REF_CREATE = 22,
    MC_DB_ACCOUNT_REF_READ = 23,
    MC_DB_ACCOUNT_REF_UPDATE = 24,
    MC_DB_ACCOUNT_REF_LOBBY_OPTION_UPDATE = 25,
    NET_DB_BANK_ACCOUNT_CREATE = 26,
    NET_DB_BANK_ACCOUNT_UPDATE = 27,
    NET_DB_BANK_ACCOUNT_READ = 28,
    NET_DB_BANK_ACCOUNT_DELETE = 29,
    NET_DB_CHARACTERCARD_CREATE = 30,
    NET_DB_CHARACTERCARD_UPDATE = 0x1F,
    NET_DB_CHARACTERCARD_READ = 0x20,
    NET_DB_CHARACTERCARD_DELETE = 33,
    NET_DB_CARD_TO_CHARACTER = 34,
    MC_DB_CHARACTER_READ_APPEAR = 35,
    NET_DB_BANK_ACCOUNT_UPDATE_EX = 36,
    NET_DB_CHARACTER_NAME_USABLE = 37,
    NET_DB_CHARACTER_READ_WRITE_COUNTER = 38,
    NET_DB_ACCOUNT_QUERY_INACTIVE = 39,
    NET_DB_PROP_CREATE = 40,
    NET_DB_PROP_UPDATE = 41,
    NET_DB_PROP_READ = 42,
    NET_DB_PROP_DELETE = 43,
    NET_DB_PROPLIST_READ = 44,
    NET_DB_GUILD_CREATE = 45,
    NET_DB_GUILD_UPDATE = 46,
    NET_DB_GUILD_READ = 47,
    NET_DB_GUILD_DELETE = 48,
    NET_DB_GUILDLIST_READ = 49,
    NET_DB_GUILD_MEMBER_ADD = 50,
    NET_DB_GUILD_POINT_ADD = 51,
    NET_DB_GUILD_MONEY_ADD = 52,
    NET_DB_GUILD_STONE_ADD = 53,
    NET_DB_GUILD_TRANSFER_MASTER = 54,
    NET_DB_GUILD_NAME_USABLE = 55,
    NET_DB_GUILD_DESTROY_GUILDSTONE = 56,
    NET_DB_GUILD_MEMEBER_CHECK_JOINTIME = 57,
    NET_DB_GUILD_DRAW_MONEY = 58,
    NET_DB_GUILD_CHANGE_GUILDSTONE = 59,
    NET_DB_ITEM_USABLE_ID = 60,
    NET_DB_CHARACTER_USABLE_ID = 61,
    NET_DB_ITEM_ID_POOL = 62,
    NET_DB_CHARACTER_ID_POOL = 0x3F,
    NET_DB_GUILD_ID_POOL = 0x40,
    NET_DB_PROP_ID_POOL = 65,
    NET_DB_ITEM_UPDATE = 66,
    NET_DB_GUILD_UPDATE_ROBE = 67,
    NET_DB_GUILD_DESTROY_ROBE = 68,
    NET_DB_GUILD_UPDATE_TITLE = 69,
    NET_DB_SIGNAL_LOGIN = 70,
    NET_DB_SIGNAL_LOGOUT = 71,
    NET_DB_SIGNAL_PLAYIN = 72,
    NET_DB_SIGNAL_PLAYOUT = 73,
    NET_DB_CHECK_CACHEKEY = 74,
    NET_DB_GUILD_UPDATE_BATTLEGROUND_TYPE = 75,
    NET_DB_GUILD_CLEAR_BATTLEGROUND_TYPE = 76,
    NET_DB_GUILD_UPDATE_BATTLEGROUND_WINNER_TYPE = 77,
    NET_DB_GUILD_UPDATE_STATUS_FLAG = 78,
    NET_DB_GUILD_JOINED_MEMBER_COUNT = 79,
    NET_DB_PET_CREATE = 80,
    NET_DB_PET_UPDATE = 81,
    NET_DB_PET_READ = 82,
    NET_DB_PET_DELETE = 83,
    NET_DB_PET_DELETE_RESERVE = 84,
    NET_DB_PET_REVIVE = 85,
    NET_DB_PET_READ_APPEAR = 86,
    NET_DB_PETCARD_CREATE = 87,
    NET_DB_PETCARD_UPDATE = 88,
    NET_DB_PETCARD_READ = 89,
    NET_DB_PETCARD_DELETE = 90,
    NET_DB_PET_READ_WRITE_COUNTER = 91,
    NET_DB_EQUIPMENT_COLLECTION_SLOT_READ = 92,
    NET_DB_EQUIPMENT_COLLECTION_SLOT_UPDATE = 93,
    NET_DB_EQUIPMENT_COLLECTION_SLOT_UPDATE_EX = 94,
    NET_DB_EQUIPMENT_COLLECTION_RANK_READ = 95,
    NET_DB_QUERY_INSERT_CHARACTER_META = 96,
    MC_DB_ACCOUNT_META_UPDATE = 97,
    NET_DB_CASTLE_LIST_READ = 100,
    NET_DB_CASTLE_BID_START = 101,
    NET_DB_CASTLE_BIDDER_CREATE = 102,
    NET_DB_CASTLE_BIDDER_UPDATE = 103,
    NET_DB_CASTLE_BIDDER_DELETE = 104,
    NET_DB_CASTLE_BID_END = 105,
    NET_DB_CASTLE_UPDATE = 106,
    NET_DB_CASTLE_BUILD_UPDATE = 107,
    NET_DB_CASTLE_BUILD_ITEM_UPDATE = 108,
    NET_DB_CASTLE_GUILD_MONEY_TAKE = 110,
    NET_DB_CASTLE_GUILD_MONEY_GIVE = 111,
    NET_DB_CASTLE_BLOCK_UPDATE = 112,
    NET_DB_HOUSE_READ = 150,
    NET_DB_HOUSE_BID_START = 151,
    NET_DB_HOUSE_BIDDER_CREATE = 152,
    NET_DB_HOUSE_BIDDER_UPDATE = 153,
    NET_DB_HOUSE_BIDDER_DELETE = 154,
    NET_DB_HOUSE_BID_END = 155,
    NET_DB_HOUSE_BID_REPAY_END = 156,
    NET_DB_HOUSE_UPDATE = 157,
    NET_DB_HOUSE_ITEM_READ = 158,
    NET_DB_HOUSE_ITEM_UPDATE = 159,
    NET_DB_HOUSE_ITEM_DELETE = 160,
    NET_DB_HOUSE_OWNER_DELETE = 161,
    NET_DB_HOUSE_BLOCK_READ = 162,
    NET_DB_HOUSE_BLOCK_UPDATE = 163,
    NET_DB_HOUSE_BIDDER_AUTOREPAY = 164,
    NET_DB_HOUSE_BLOCK_DELETE = 165,
    NET_DB_MEMO_SEND = 200,
    NET_DB_ITEM_DELETE = 300,
    NET_DB_PET_ITEM_DELETE = 301,
    NET_DB_CHRONICLE_INSERT_LOG = 400,
    NET_DB_CHRONICLE_INFO_LIST_INIT = 401,
    NET_DB_RUIN_READ = 500,
    NET_DB_RUIN_UPDATE = 501,
    NET_DB_RELIC_READ = 600,
    NET_DB_RELIC_UPDATE = 601,
    NET_DB_ADVERTISE_QUERY = 701,
    NET_DB_ADVERTISE_REGISTER = 702,
    NET_DB_ADVERTISE_UNREGISTER = 703,
    NET_DB_ADVERTISE_ITEM_ADD = 704,
    NET_DB_ADVERTISE_ITEM_REMOVE = 705,
    NET_DB_ADVERTISE_ITEM_SET_PRICE = 706,
    NET_DB_ADVERTISE_UPDATE = 707,
    NET_DB_DUNGEON_RANKING_UPDATE = 800,
    NET_DB_CHANNELING_CHECK_AND_INSERT = 900,
    MC_DB_ACCOUNT_CREATE_ACTIVATE = 901,
    MC_DB_ACCOUNT_UPDATE_PASSWORD2 = 902,
    MC_DB_ACCOUNT_READ_SECONDARY_PASSWORD = 903,
    MC_DB_ACCOUNT_UPDATE_PW2_MISS = 904,
    MC_DB_ACCOUNT_CREATE_NXK = 905,
    MC_DB_ACCOUNT_LIST_NXJ = 906,
    MC_DB_ACCOUNT_CREATE_NXJ = 907,
    NET_DB_PROMOTION_BEGIN_TEST = 910,
    NET_DB_PROMOTION_RECORD_POINT = 911,
    NET_DB_PROMOTION_END_TEST = 912,
    NET_DB_MAIL_READ = 1000,
    NET_DB_MAIL_SEND = 1001,
    NET_DB_MAIL_DELETE = 1002,
    NET_DB_MAIL_UPDATE_STATUS = 1003,
    NET_DB_MAIL_CHECK_CHARACTER = 1004,
    NET_DB_MAIL_GET_UNREAD_COUNT = 1005,
    NET_DB_FARM_READ = 1100,
    NET_DB_FARM_LEASE = 1101,
    NET_DB_FARM_EXPIRE = 1102,
    NET_DB_FARM_UPDATE = 1103,
    NET_DB_FARM_ACCOUNT_OWN = 1104,
    NET_DB_AUCTION_BID_ID_POOL = 1200,
    NET_DB_AUCTION_BID_READ = 1201,
    NET_DB_AUCTION_BID_ADD = 1202,
    NET_DB_AUCTION_BID_UPDATE = 1203,
    NET_DB_AUCTION_BID_REMOVE = 1204,
    NET_DB_EVENT_UPDATE = 1300,
    NET_DB_WORLDMETA_READ = 1400,
    NET_DB_WORLDMETA_UPDATE = 1401,
    NET_DB_WINE_AGING_READ = 1500,
    NET_DB_WINE_AGING_UPDATE = 1501,
    NET_DB_WINE_AGING_REMOVE = 1502,
    NET_DB_BAN_ACCOUNT = 1503,
    NET_DB_UNBAN_ACCOUNT = 1504,
    NET_DB_QUERY_BANK_PASSWORD = 1505,
    NET_DB_QUERY_ACCUM_LEVEL = 1506,
    NET_DB_ROYALALCHEMIST_READ = 1510,
    NET_DB_ROYALALCHEMIST_LIST = 1511,
    NET_DB_ROYALALCHEMIST_ADD = 1512,
    NET_DB_ROYALALCHEMIST_REMOVE = 1513,
    NET_DB_ROYALALCHEMIST_UPDATE = 1514,
    NET_DB_COUNTRY_CCU_REPORT = 1515,
    NET_DB_COUNTRY_LOGINOUT_REPORT = 1516,
    NET_DB_FAMILY_LIST = 1517,
    NET_DB_FAMILY_READ = 1518,
    NET_DB_FAMILY_ADD = 1519,
    NET_DB_FAMILY_REMOVE = 1520,
    NET_DB_FAMILY_UPDATE = 1521,
    NET_DB_FAMILY_ADD_MEMBER = 1522,
    NET_DB_FAMILY_REMOVE_MEMBER = 1523,
    NET_DB_FAMILY_UPDATE_MEMBER = 1524,
    NET_DB_HUSKY_CALLPROCEDURE = 1525,
    NET_DB_REMOVE_RESERVED_CHARNAME_INFO = 1526,
    NET_DB_UPDATE_ACCOUNT_REF_FLAG = 1527,
    NET_DB_ITEMMARKET_INFO = 1600,
    NET_DB_ITEMMARKET_CHECKENTRANCE = 1601,
    NET_DB_ITEMMARKET_GETITEM = 1602,
    NET_DB_ITEMMARKET_GETITEM_COMMIT = 1603,
    NET_DB_ITEMMARKET_GETITEM_ROLLBACK = 1604,
    NET_DB_ITEMMARKET_INQUIRY_MYPAGE = 1605,
    NET_DB_ITEMMARKET_INQUIRY_SALEITEM = 1606,
    NET_DB_ITEMMARKET_INQUIRY_STORAGE = 1607,
    NET_DB_ITEMMARKET_ITEMLIST = 1608,
    NET_DB_ITEMMARKET_ITEMPURCHASE = 1609,
    NET_DB_ITEMMARKET_ITEMSEARCH = 1610,
    NET_DB_ITEMMARKET_SALE_REQUEST = 1611,
    NET_DB_ITEMMARKET_SALE_CANCEL = 1612,
    NET_DB_ITEMMARKET_SALE_REQUEST_COMMIT = 1613,
    NET_DB_ITEMMARKET_SALE_REQUEST_ROLLBACK = 1614,
    NET_DB_ITEMMARKET_CHECKBALANCE = 1615,
    NET_DB_ITEMMARKET_ADMINISTRATOR_ACCOUNT_CHANGE = 1616,
    NET_DB_LOGIN_ID_POOL = 1650,
    NET_DB_PRIVATEFARM_FACILITY_ID_POOL = 1700,
    NET_DB_PRIVATEFARM_CREATE = 1701,
    NET_DB_PRIVATEFARM_READ = 1702,
    NET_DB_PRIVATEFARM_UPDATE = 1703,
    NET_DB_PRIVATEFARM_QUERY_ZONE_OWNER = 1704,
    NET_DB_PRIVATEFARM_QUERY_USABLE_NAME = 1705,
    NET_DB_PRIVATEFARM_QUERY_ZONE_ID = 1706,
    NET_DB_PRIVATEFARM_UPDATE_VISITOR = 1707,
    NET_DB_SCRAPBOOK_SCRAP = 1708,
    NET_DB_SCRAPBOOK_QUERY_SCRAPPED_LIST = 1709,
    NET_DB_SCRAPBOOK_QUERY_BEST_COOK_LIST = 1710,
    NET_DB_SCRAPBOOK_UPDATE_BEST_COOK = 1711,
    NET_DB_COMMERCE_T_READ_ALL_DATA = 1712,
    NET_DB_COMMERCE_T_QUERY_INFO = 1713,
    NET_DB_COMMERCE_T_UPDATE_PRODUCT = 1714,
    NET_DB_COMMERCE_T_UPDATE_INFO = 1715,
    NET_DB_COMMERCE_T_END_COMBAT = 1716,
    NET_DB_COMMERCE_T_REMOVE_ALL_PRODUCT = 1717,
    NET_DB_COMMERCE_T_SELL_PRODUCT = 1718,
    NET_DB_COMMERCE_T_QUERY_DUCAT = 1719,
    NET_DB_COMMERCE_E_READ_ALL = 1720,
    NET_DB_COMMERCE_E_WRITE_ALL = 1721,
    NET_DB_COMMERCE_E_UPDATE_POST = 1722,
    NET_DB_COMMERCE_E_UPDATE_PRODUCT = 1723,
    NET_DB_QUERY_SIMPLE_ACCOUNT = 1724,
    NET_DB_COMMERCE_CRIMINAL_READ_ALL = 1725,
    NET_DB_COMMERCE_CRIMINAL_UPDATE = 1726,
    NET_DB_COMMERCE_CRIMINAL_BOSS_DIE = 1727,
    NET_DB_RECOMMEND_INSERT = 1728,
    NET_DB_RECOMMEND_UPDATE = 1729,
    NET_DB_RECOMMEND_SELECT = 1730,
    NET_DB_RECOMMEND_SELECT_LIST = 1731,
    NET_DB_PAWN_COIN_MODIFY = 1733,
    NET_DB_PRIVATE_FARM_RECOMMEND_ADD = 1734,
    NET_DB_PRIVATE_FARM_RECOMMEND_READ_LIST = 1735,
    NET_DB_PRIVATE_FARM_RECOMMEND_DELETE_LIST = 1736,
    NET_DB_PRIVATE_FARM_RECOMMEND_QUERY_ZONE_ID = 1737,
    NET_DB_PRIVATE_FARM_PENALTY_INSERT = 1738,
    NET_DB_PRIVATE_FARM_PENALTY_DELETE = 1739,
    NET_DB_PRIVATE_FARM_PENALTY_CHECK = 1740,
    NET_DB_PRIVATE_FARM_UPDATETIME_SELECT = 1741,
    NET_DB_PAWN_COIN_LOG_INSERT = 1742,
    NET_DB_GOLD_LOG_INSERT = 1743,
    NET_DB_LINK_CHARACTER_SELECT = 1744,
    NET_DB_LINK_CHARACTER_UPDATE = 1745,
    NET_DB_SOULMATE_READ_LIST = 1746,
    NET_DB_SOULMATE_UPDATE = 1747,
    NET_DB_SOULMATE_REMOVE = 1748,
    NET_DB_PERSONAL_RANKING_READ = 1749,
    NET_DB_PERSONAL_RANKING_UPDATE_SOCRE = 1750,
    NET_DB_PERSONAL_RANKING_REMOVE_SCORE = 1751,
    NET_DB_PERSONAL_RANKING_CLEAR_CACHE = 1752,
    NET_DB_PERSONAL_RANKING_READ2 = 1753,
    NET_DB_PERSONAL_RANKING_CLEAR = 1754,
    MC_DB_ACCOUNT_MEMBERSHIP_BILLING = 1755,
    NET_DB_MABINOVEL_INSERT_NOVEL = 1756,
    NET_DB_MABINOVEL_NOVEL_BOARD_LIST_LOAD = 1757,
    NET_DB_MABINOVEL_NOVEL_PAGE_DATA_READ = 1758,
    NET_DB_MABINOVEL_NOVEL_BOARD_FIND_TITLE = 1759,
    NET_DB_MABINOVEL_NOVEL_POSTS_UPDATE = 1760,
    NET_DB_MABINOVEL_NOVEL_ROTALTIES_LIST_LOAD = 1761,
    NET_DB_MABINOVEL_NOVEL_BOARD_UPDATE_CHECK = 1762,
    NET_DB_MABINOVEL_NOVEL_GET_CHANGE_POSTS = 1763,
    NET_DB_HELP_POINT_LIST_LOAD = 1764,
    NET_DB_HELP_POINT_UPDATE = 1765,
    NET_DB_HELP_POINT_DECREASE = 1766,
    NET_DB_QUERY_ACCOUNT_WITH_SERVER_AND_CHAR_NAME = 1767,
    NET_DB_LOAD_ENTRY_COUPON_LIST = 1768,
    NET_DB_UPDATE_ENTRY_COUPON = 1769,
    NET_DB_DELETE_ENTRY_COUPON = 1770
}

public enum PRIVATEFARM_WRITEMODE
{
    ALL,
    VISITOR_LIST
}

internal enum MailboxMailType : byte
{
    Normal = 1,
    WithItem,
    Reject,
    Remittance
}

internal enum MailBoxErrorCode : byte
{
    ErrorUnknown,
    ErrorReceiverMailBoxFull,
    ErrorSenderMailBoxFull,
    ErrorMailNotExist,
    ErrorCharacterNotExist,
    ErrorCharacterIsPet
}

public enum REPLY_RESULT
{
    FAIL = 0,
    SUCCESS = 1,
    ERROR = -1,
    FAIL_EX = 51
}

public enum RuinType
{
    rtRuin,
    rtRelic
}